package zz.champion_contest05;

public class Q1_Eating {
		private String name;
		private String food;
		private char rank; 
		
		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getFood() {
			return food;
		}

		public void setFood(String food) {
			this.food = food;
		}

		public char getRank() {
			return rank;
		}

		public void setRank(char rank) {
			this.rank = rank;
		}

		void assess(){
			if(rank=='A'){
				System.out.println("今天"+name+"吃了"+food+"他评价真好吃！");
				}
			if(rank=='B'){
				System.out.println("今天"+name+"吃了"+food+"他评价还可以！");
			}
			if(rank=='C'){
				System.out.println("今天"+name+"吃了"+food+"他评价不推荐！");
			}
			
		}
		
}
